package com.itjisu.hongbao.util;

import android.util.Log;

import com.itjisu.hongbao.constants.GlobalConfig;


/**
 * Created by xiaoke on 2016/12/29.
 */
public class MLog {

    public static void d(String content) {
        if (GlobalConfig.isDebug) {
            Log.d(GlobalConfig.TAG, content);
        }
    }

    public static void e(String content, Throwable e) {
        if (GlobalConfig.isDebug) {
            if (e != null) {
                e.printStackTrace();
                Log.e(GlobalConfig.TAG, content + " err=" + e.getMessage());
            } else {
                Log.e(GlobalConfig.TAG, content);
            }
        }
    }
}
